<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script type="text/javascript" src="../js/vue.js"></script>
</head>
<body>
    <div id="root">
        <h1>Hello {{name}}</h1> <!--渲染SGG1-->
    </div>
    <script>
        Vue.config.productionTip = false

        new Vue({
            el: "#root", 
            data: { 
                name: "SGG1" 
            }
        })

        new Vue({
            el: "#root", //不起作用，一个容器只能被一个Vue实例接管
            data: { 
                name: "SGG2" 
            }
        })
    </script>
</body>
</html>